@import "style/theme.less";

.material-item {
  display: flex;
  overflow: hidden;
  align-items: center;

  .material-cover {
    @size: 24px;
    width: @size;
    height: @size;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;

    &.icon-cover {
      background-color: #d9d9d9;
    }

    .material-icon {
      font-size: 18px;
    }

    .img-icon {
      width: @size;
      height: @size;
    }
  }
}

.link-content {
  flex: 1;
  overflow: hidden;

  .link-title {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 14px;
    margin-bottom: 2px;

    .link-title-text {
      white-space: nowrap;
      word-break: keep-all;
      overflow: hidden;
      text-overflow: ellipsis;
      color: @heading-color;
    }
  }

  .link-description {
    word-break: keep-all;
    @size: 10px;
    font-size: @size;
    line-height: 14px;
    color: @text-color-secondary;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}